import React, {Component} from "react";
import {getBaseCategoryList} from './api'

class App extends Component{


  handleClick = () => {
    getBaseCategoryList().then(value => console.log('value: ', value))
      .catch(reason => console.log('reason: ', reason))
  }

  render() {
    return (
      <div className="App">
        <h2>尚品汇</h2>
        <button onClick={this.handleClick}>click me</button>
      </div>
    );
  }
}


export default App